import i18n from '@/i18n'
import { RenderLinkedWidgetsAction, RenderTimeFormat } from './element'

export const renderLinkedWidgetColumns = () => Object.freeze([
  {
    field: 'name',
    headerText: i18n.t('custom.dataset.name'),
    width: 100,
  },
  {
    field: 'reportName',
    headerText: i18n.t('custom.dataset.linkreport'),
    width: 130,
  },
  {
    field: 'businessType',
    headerText: i18n.t('custom.dataset.businessType'),
    width: 100
  },
  {
    field: 'status',
    headerText: i18n.t('custom.dataset.status'),
    width: 100
  },
  {
    field: 'reuse',
    headerText: i18n.t('custom.dataset.reuse'),
    width: 80
  },
  {
    field: 'updateTime',
    headerText: i18n.t('custom.reports.updateDate'),
    width: 100,
    template: RenderTimeFormat
  },

  {
    width: 130,
    template: RenderLinkedWidgetsAction
  }
])
